﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// Seo优化表
    /// </summary>
    public class Seos:BaseEntity
    {
        [Required(ErrorMessage ="{0}不能为空")]
        [StringLength(200),Column(TypeName ="varchar(200)")]
        [Display(Name ="Seo优化名")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(800), Column(TypeName = "varchar(800)")]
        [Display(Name = "关键词")]
        public string KeyWord { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(800), Column(TypeName = "varchar(800)")]
        [Display(Name = "描述")]
        public string Description { get; set; }

        public int WebMenuId { get; set; }  // 前端界面菜单外键
    }
}
